home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / hc / animatio.sit / Animation Stack / background_2653.txt < prev    next >
Encoding:
Text File  |  1988-11-26  |  9.9 KB  |  411 lines

  1. -- background: 2653 from stack: in
  2. -- bmap block id: 3783
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A006
  11. -- rect: left=142 top=22 right=40 bottom=253
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Continuous
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   set hilite of background button "Point-to-Point" to false
  23. end mouseUp
  24.  
  25.  
  26.  
  27. -- part 2 (button)
  28. -- low flags: 00
  29. -- high flags: A006
  30. -- rect: left=142 top=43 right=60 bottom=262
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 1
  34. -- font id: 0
  35. -- text size: 12
  36. -- style flags: 0
  37. -- line height: 16
  38. -- part name: Point-to-Point
  39. ----- HyperTalk script -----
  40. on mouseUp
  41.   set hilite of background button "Continuous" to false
  42. end mouseUp
  43.  
  44.  
  45.  
  46. -- part 3 (field)
  47. -- low flags: 00
  48. -- high flags: 0007
  49. -- rect: left=271 top=36 right=304 bottom=491
  50. -- title width / last selected line: 0
  51. -- icon id / first selected line: 0 / 0
  52. -- text alignment: 0
  53. -- font id: 3
  54. -- text size: 9
  55. -- style flags: 0
  56. -- line height: 12
  57. -- part name: Animation Sequence
  58. ----- HyperTalk script -----
  59. on closeField
  60.   global endLoc
  61.   repeat until last word of last line of field "Animation Sequence" is not empty
  62.     delete last line of field "Animation Sequence"
  63.   end repeat
  64.   put last word of last line of field "Animation Sequence" into it
  65.   if item 2 of it is empty or item 3 of it is not empty then
  66.     set hilite of bkgnd button "Continue?" to false
  67.     put empty into endLoc
  68.   else put it into endLoc
  69. end closeField
  70.  
  71.  
  72. -- part 5 (button)
  73. -- low flags: 00
  74. -- high flags: 2000
  75. -- rect: left=223 top=109 right=147 bottom=265
  76. -- title width / last selected line: 65412
  77. -- icon id / first selected line: -15743 / 49793
  78. -- text alignment: 1
  79. -- font id: 0
  80. -- text size: 12
  81. -- style flags: 0
  82. -- line height: 16
  83. -- part name: Begin
  84. ----- HyperTalk script -----
  85. on mouseUp
  86.   global endLoc
  87.   set icon of bkgnd button "Begin" to -15744
  88.   if hilite of bkgnd button "Continue?" is false then
  89.     -- wait 10
  90.     put "Click at starting point for animation." into field "Additional Notes"
  91.     show field "Additional Notes"
  92.     hide field "Notes"
  93.     wait until the mouse is down
  94.     put the mouseLoc into startLoc
  95.   else
  96.     put endLoc into startLoc
  97.     put "Click at next point to continue to....." into field "Additional Notes"
  98.     show field "Additional Notes"
  99.     hide field "Notes"
  100.     repeat while the mouse is up
  101.       put the mouseLoc into field "Mouse"
  102.     end repeat
  103.     put the mouseLoc into endLoc
  104.     put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  105.     wait 10
  106.   end if
  107.   if hilite of background button "Continuous" is true then
  108.     put "Click once to terminate animation sequence." into field "Additional Notes"
  109.     repeat while the mouse is up
  110.       put the mouseLoc into endLoc
  111.       put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  112.       put endLoc into startLoc
  113.     end repeat
  114.     set hilite of me to false
  115.   else
  116.     put "Click to designate next point in sequence.  " & "Double-click to terminate animation sequence." into field "Additional Notes"
  117.     repeat
  118.       wait until the mouse is down
  119.       put the mouseLoc into endLoc
  120.       wait 15
  121.       if the mouse is down then
  122.         put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  123.         exit repeat
  124.       end if
  125.       put "drag from " & startLoc & " to " & endLoc & return after field "Animation Sequence"
  126.       put endLoc into startLoc
  127.     end repeat
  128.   end if
  129.   set icon of bkgnd button "Begin" to -15743
  130.   show field "Notes"
  131.   hide field "Additional Notes"
  132. end mouseUp
  133.  
  134.  
  135.  
  136. -- part 7 (button)
  137. -- low flags: 00
  138. -- high flags: A003
  139. -- rect: left=11 top=271 right=300 bottom=92
  140. -- title width / last selected line: 0
  141. -- icon id / first selected line: 0 / 0
  142. -- text alignment: 1
  143. -- font id: 0
  144. -- text size: 12
  145. -- style flags: 0
  146. -- line height: 16
  147. -- part name: Set Up
  148. ----- HyperTalk script -----
  149. on mouseUp
  150.   put "on mouseUp" & return into workScript
  151.   put "choose Lasso Tool" & return after workScript
  152.   put "domenu Select" & return after workScript
  153.   put "domenu Opaque" & return after workScript
  154.   put field "Animation Sequence" after workScript
  155.   put "domenu Undo" & return after workScript
  156.   put "choose " & quote & "Browse Tool" & quote & return after workScript
  157.   put "end mouseUp" after workScript
  158.   set script of background button "Do It!" to workScript
  159. end mouseUp
  160.  
  161.  
  162.  
  163. -- part 8 (button)
  164. -- low flags: 00
  165. -- high flags: A003
  166. -- rect: left=98 top=272 right=301 bottom=204
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 0 / 0
  169. -- text alignment: 1
  170. -- font id: 0
  171. -- text size: 12
  172. -- style flags: 0
  173. -- line height: 16
  174. -- part name: Do It!
  175. ----- HyperTalk script -----
  176. on mouseUp
  177.   choose Lasso Tool
  178.   domenu Select
  179.   domenu Opaque
  180.   set dragSpeed to 1000
  181.   domenu Undo
  182.   choose "Browse Tool"
  183. end mouseUp
  184.  
  185.  
  186. -- part 9 (button)
  187. -- low flags: 00
  188. -- high flags: A003
  189. -- rect: left=335 top=312 right=341 bottom=416
  190. -- title width / last selected line: 0
  191. -- icon id / first selected line: 0 / 0
  192. -- text alignment: 1
  193. -- font id: 0
  194. -- text size: 12
  195. -- style flags: 0
  196. -- line height: 16
  197. -- part name: Clear
  198. ----- HyperTalk script -----
  199. on mouseUp
  200.   global endLoc
  201.   set hilite of bkgnd button "Continue?" to false
  202.   put "set dragSpeed to " & field "Speed" & return into field "Animation Sequence"
  203.   put empty into endLoc
  204. end mouseUp
  205.  
  206.  
  207.  
  208. -- part 10 (field)
  209. -- low flags: 00
  210. -- high flags: 0004
  211. -- rect: left=137 top=148 right=174 bottom=221
  212. -- title width / last selected line: 0
  213. -- icon id / first selected line: 0 / 0
  214. -- text alignment: 0
  215. -- font id: 3
  216. -- text size: 18
  217. -- style flags: 256
  218. -- line height: 24
  219. -- part name: Speed
  220.  
  221.  
  222. -- part 11 (button)
  223. -- low flags: 00
  224. -- high flags: 0000
  225. -- rect: left=232 top=150 right=174 bottom=262
  226. -- title width / last selected line: 0
  227. -- icon id / first selected line: 1013 / 1013
  228. -- text alignment: 1
  229. -- font id: 0
  230. -- text size: 12
  231. -- style flags: 0
  232. -- line height: 16
  233. -- part name: 
  234. ----- HyperTalk script -----
  235. on mouseUp
  236.   if the selection is empty then
  237.     put "set dragSpeed to " & field "Speed" & return after field "Animation Sequence"
  238.   else
  239.     type "set dragSpeed to " & field "Speed" & return
  240.   end if
  241. end mouseUp
  242.  
  243.  
  244.  
  245. -- part 12 (button)
  246. -- low flags: 00
  247. -- high flags: 8005
  248. -- rect: left=143 top=83 right=106 bottom=236
  249. -- title width / last selected line: 0
  250. -- icon id / first selected line: 0 / 0
  251. -- text alignment: 1
  252. -- font id: 0
  253. -- text size: 12
  254. -- style flags: 0
  255. -- line height: 16
  256. -- part name: Continue?
  257. ----- HyperTalk script -----
  258. on mouseUp
  259.   global endLoc
  260.   if hilite of bkgnd button "Continue?" is true then
  261.     set hilite of bkgnd button "Continue?" to false
  262.     exit mouseUp
  263.   end if
  264.   repeat until last word of last line of field "Animation Sequence" is not empty
  265.     delete last line of field "Animation Sequence"
  266.   end repeat
  267.   put number of lines of field "Animation Sequence" into noLines
  268.   repeat
  269.     put last word of line noLines of field "Animation Sequence" into it
  270.     if item 2 of it is empty or item 3 of it is not empty then
  271.       subtract 1 from noLines
  272.       if noLines is 0 then
  273.         answer "No place to continue from!" with "OK"
  274.         exit repeat
  275.       end if
  276.     else
  277.       set hilite of bkgnd button "Continue?" to true
  278.       put it into endLoc
  279.       exit repeat
  280.     end if
  281.   end repeat
  282. end mouseUp
  283.  
  284.  
  285.  
  286. -- part 13 (field)
  287. -- low flags: 00
  288. -- high flags: 0002
  289. -- rect: left=54 top=308 right=332 bottom=155
  290. -- title width / last selected line: 0
  291. -- icon id / first selected line: 0 / 0
  292. -- text alignment: 1
  293. -- font id: 3
  294. -- text size: 18
  295. -- style flags: 256
  296. -- line height: 24
  297. -- part name: mouse
  298.  
  299.  
  300. -- part 14 (field)
  301. -- low flags: 81
  302. -- high flags: 0004
  303. -- rect: left=9 top=182 right=269 bottom=251
  304. -- title width / last selected line: 0
  305. -- icon id / first selected line: 0 / 0
  306. -- text alignment: 0
  307. -- font id: 3
  308. -- text size: 12
  309. -- style flags: 0
  310. -- line height: 16
  311. -- part name: Additional Notes
  312.  
  313.  
  314. -- part 15 (field)
  315. -- low flags: 01
  316. -- high flags: 0004
  317. -- rect: left=9 top=182 right=269 bottom=251
  318. -- title width / last selected line: 0
  319. -- icon id / first selected line: 0 / 0
  320. -- text alignment: 0
  321. -- font id: 3
  322. -- text size: 12
  323. -- style flags: 0
  324. -- line height: 16
  325. -- part name: Notes
  326.  
  327.  
  328. -- part 16 (button)
  329. -- low flags: 00
  330. -- high flags: 0000
  331. -- rect: left=476 top=311 right=337 bottom=507
  332. -- title width / last selected line: 0
  333. -- icon id / first selected line: 1012 / 1012
  334. -- text alignment: 1
  335. -- font id: 0
  336. -- text size: 12
  337. -- style flags: 0
  338. -- line height: 16
  339. -- part name: 
  340. ----- HyperTalk script -----
  341. on mouseUp
  342.   visual dissolve to white
  343.   visual dissolve to card
  344.   go back
  345. end mouseUp
  346.  
  347.  
  348.  
  349. -- part 17 (button)
  350. -- low flags: 00
  351. -- high flags: 0000
  352. -- rect: left=234 top=307 right=339 bottom=274
  353. -- title width / last selected line: 0
  354. -- icon id / first selected line: 32462 / 32462
  355. -- text alignment: 1
  356. -- font id: 0
  357. -- text size: 12
  358. -- style flags: 0
  359. -- line height: 16
  360. -- part name: 
  361. ----- HyperTalk script -----
  362. on mouseUp
  363.   visual dissolve slowly to white
  364.   visual dissolve to card
  365.   go next
  366. end mouseUp
  367.  
  368.  
  369.  
  370. -- part 18 (button)
  371. -- low flags: 00
  372. -- high flags: 0000
  373. -- rect: left=11 top=309 right=335 bottom=42
  374. -- title width / last selected line: 0
  375. -- icon id / first selected line: 20689 / 20689
  376. -- text alignment: 1
  377. -- font id: 0
  378. -- text size: 12
  379. -- style flags: 0
  380. -- line height: 16
  381. -- part name: 
  382. ----- HyperTalk script -----
  383. on mouseUp
  384.   visual dissolve to white
  385.   visual dissolve to card
  386.   go home
  387. end mouseUp
  388.  
  389.  
  390.  
  391. -- part 20 (button)
  392. -- low flags: 00
  393. -- high flags: 2006
  394. -- rect: left=158 top=311 right=331 bottom=179
  395. -- title width / last selected line: 0
  396. -- icon id / first selected line: 0 / 0
  397. -- text alignment: 1
  398. -- font id: 0
  399. -- text size: 12
  400. -- style flags: 0
  401. -- line height: 16
  402. -- part name: MouseLoc
  403. ----- HyperTalk script -----
  404. on mouseUp
  405.   repeat until the mouse is down
  406.     put the mouseLoc into field "Mouse"
  407.   end repeat
  408.   set hilite of bkgnd button "MouseLoc" to false
  409. end mouseUp
  410.  
  411.